#ifndef MAINSCENE_H
#define MAINSCENE_H

#include <QWidget>
#include "playscene.h"
#include "introscene.h"

QT_BEGIN_NAMESPACE
namespace Ui {
class MainScene;
}
QT_END_NAMESPACE

class MainScene : public QWidget
{
    Q_OBJECT

public:
    MainScene(QWidget *parent = nullptr);
    ~MainScene();

    //初始化函数
    void initScene();

    //绘图事件
    void paintEvent(QPaintEvent *);

    //维护关卡场景的指针
    PlayScene *playscene;

    //维护介绍场景的指针
    IntroScene *introscene;

private:
    Ui::MainScene *ui;
};
#endif // MAINSCENE_H
